package com.weidey.blogWeb.domain.param;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;


@Getter
@Setter
public class CommentParam {

    @NotBlank(message =  "评论不能为空")
    @Length(min = 1, max = 500, message = "评论长度为1字-500字")
    private String comment;

    @NotNull(message =  "文章id不能为空")
    private Long articleId;

    private Long pid;

    @NotNull(message =  "用户id不能为空")
    private Long uid;

    @NotBlank(message =  "用户名不能为空")
    private String username;


    private String target;

}
